home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / planetkit / win3 / trumpet / login.cmd < prev    next >
OS/2 REXX Batch file  |  1996-06-13  |  1KB  |  51 lines

  1. #trace on
  2. if ![load $number]
  3.   if [query $number "Enter your dial up phone number"]
  4.     save $number
  5.   end
  6. end
  7. if ![load $username]
  8.   if [username "Inserisci il tuo Author ID (Username)"]
  9.     save $username
  10.   end
  11. end
  12. if ![load $password]
  13.   if [password "Inserisci la tua password"]
  14.     save $password
  15.   end
  16. end
  17. #-------------------- STRINGA DI INIZIALIZZAZIONE ---------
  18. $modemsetup = "&fx3"
  19. #----------------------------------------------------------
  20. $prompt = ">"
  21. $userprompt = "ogin:"
  22. $addrtarg = "Il tuo indirizzo TCP/IP è:"
  23. $pppcmd = "ppp"
  24. $pap = "~"
  25.  
  26. %attempts = 10
  27.  
  28. output "atz"\13
  29. if ! [input 10 OK\n]
  30.   display "Modem is not responding"\n
  31.   abort
  32. end
  33. output "at"$modemsetup\13
  34. input 10 OK\n
  35. %n = 0
  36. repeat
  37.   if %n = %attempts
  38.     display "Too many dial attempts"\n
  39.     abort
  40.   end
  41.   output "atdt"$number\13
  42.   %ok = [input 60 CONNECT]
  43.   %n = %n + 1
  44. until %ok
  45. input 10 \n
  46. wait 30 dcd
  47. output \13
  48. input 30 $userprompt
  49. sleep 1
  50. output "ppp"\13
  51. input 10 $pap